'Declaration Public Overloads Shared Function As(Of T As ComObject)( _ ByVal iunknownPtr As System.IntPtr _ ) As T
public static T As<T>( System.IntPtr iunknownPtr ) where T: ComObject
Parameters
- iunknownPtr
- The managed COM object.
Type Parameters
- T
- The type of the COM interface to query
Return Value
An instance of the queried interface